 <?php
 #define mysql server ip address;
 $mysql_host='127.0.0.1';
 #define mysql server username;
 $mysql_username='root';
 #define mysql server passwd;
 $mysql_passwd='';
 #define mysql server database;
 $mysql_db='xgen';
 #connect to mysql server;
$link = mysql_connect($mysql_host,$mysql_username,$mysql_passwd);
#select mysql database;
 mysql_select_db($mysql_db);
 ?>